package com.example.ass7.collision;

import com.example.ass7.geometryprimitives.Point;

/**
 * @author Meirav Ben Izhak
 */
public class CollisionInfo {

    private final Point collisionPoint;
    private final Collidable collisionObject;

    /**
     * @param collide
     *            collide
     * @param collideWith
     *            collideWith
     */
    public CollisionInfo(Point collide, Collidable collideWith) {
        this.collisionPoint = collide;
        this.collisionObject = collideWith;
    }

    // the point at which the collision occurs.
    /**
     * @return Point
     */
    public Point getCollisionPoint() {
        return this.collisionPoint;
    }

    // the collidable object involved in the collision.
    /**
     * @return Collidable
     */
    public Collidable getCollisionObject() {
        return this.collisionObject;
    }

}
